Open
Conversation
Add a Suppress button to the top of the report detail pane and replace the bulk-suppress confirmation in the toolbar with a dialog that asks why the user is suppressing. The dialog offers six radio reasons plus an optional free-form note. Selections are sent alongside the state transition and persisted server-side as a `dismissal`-type report artefact so the rationale survives status changes and can stack over time. Generated-By: PostHog Code Task-Id: d3d675ab-707a-4a35-939b-9a9ab0f5c5b5
Replace SuppressDialog with DismissReportDialog owned by InboxSignalsTab; derive dismissal options from shared dismissalReasons. Toolbar shows Dismiss (≤1 selected, opens modal) or Snooze+Suppress (>1 selected, direct bulk actions). Remove list hover dismiss control; use gray soft buttons for dismiss-related actions. Tighten bulk suppress/snooze eligibility and keep legacy reason parsing.
…lbar Puts secondary bulk actions behind a ⋯ menu (inbox-tweaks pattern), keeps Snooze/Suppress/Dismiss as primary actions, and preserves the shared dismiss dialog and existing delete confirmation AlertDialog.
… tasks hook Keep dismissal constants/types on @shared/dismissalReasons only; use DismissalReason from there in artefact types. Extract useReportTasks/getTaskPrUrl to an inbox hook, dedupe overflow menu rows via BulkOverflowMenuItem, unify dismiss mutation pending for toolbar and detail, and trim ExplainedLabel exports. Inline dismissal radio parsing in DismissReportDialog.
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
"Snooze", "Suppress" and "Delete" don't provide us with info on why the user got rid of the report – and it's hard to understand how to use them.
Changes
Replacing those three buttons with one clear "Dismiss", and a hidden dropdown for "Delete" - as well as "Reingest".
Basically replaces the old suppress-confirmation dialog and adds a "Dismiss" button (with thumbs-down icon) to both the inbox toolbar and the report detail pane header. Notes:
- Multi-select (2+) keeps the previous bulk Snooze / Suppress buttons without the dialog. For mass management.
⋯overflow menu, keeping the primary toolbar clean.Implementation PR link now shown in the report detail header next to "Dismiss" (so they function as "here's the PR to review, accept or dismiss").
Backend prerequisite PR: PostHog/posthog#57768
Created with PostHog Code